import { createRouter, createWebHistory } from 'vue-router'
import routes from './routes'
// ... 路由配置代码

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router // 确保有这行默认导出